{% extends "base.html" %}
{% block mycontent %}
    <div class="container">
        <h4>添加用户</h4>
        <hr>
    </div>
    <div class="container">
        {% if errmsg %}
            <div class="alert alert-danger" role="alert">{{ errmsg }}</div>
        {% endif %}
    </div>
    <div class="container">
        <form action="/add_user" method="post">
            <div class="form-group">
                <label for="username">用户名：</label>
                <input type="text" class="form-control" name="username" placeholder="用户名">
            </div>
            <div class="form-group">
                <label for="password">密码：</label>
                <input type="password" class="form-control" name="password" placeholder="密码">
            </div>
            <div class="form-group">
                <label for="password_repeat">确认密码：</label>
                <input type="password" class="form-control" name="password_repeat" placeholder="确认密码">
            </div>
            <div class="form-group">
                <label for="name">姓名：</label>
                <input type="text" class="form-control" name="name" placeholder="请填写真实姓名">
            </div>
            <div class="form-group">
                <label for="wechatId">微信号：</label>
                <input type="text" class="form-control" name="wechat_id" placeholder="要绑定的企业微信账号（拼音）">
            </div>
            <button type="submit" class="btn btn-success" style="width:100%">添加</button>
        </form>
    </div>

{% endblock %}